package cn.tedu.csmall.product.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * SPU（Standard Product Unit）
 *
 * @TableName pms_spu
 */
@Data
@Accessors(chain = true)
@TableName("pms_spu")
public class Spu implements Serializable {


    @TableId(type = IdType.NONE)
    private Long id;

    private String name;

    private String typeNumber;

    private String title;

    private String description;

    private BigDecimal listPrice;

    private Integer stock;

    private Integer stockThreshold;

    private String unit;

    private Long brandId;

    private String brandName;

    private Long categoryId;

    private String categoryName;

    private Long attributeTemplateId;

    private Long albumId;

    private String pictures;

    private String keywords;

    private String tags;

    private Integer sales;

    private Integer commentCount;

    private Integer positiveCommentCount;

    private Integer sort;

    private Integer isDeleted;

    private Integer isPublished;

    private Integer isNewArrival;

    private Integer isRecommend;

    private Integer isChecked;

    private String checkUser;

    private LocalDateTime gmtCheck;

    private LocalDateTime gmtCreate;

    private LocalDateTime gmtModified;


}